package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbBookingSpaceReceipt;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbBookingSpaceReceipt is a Querydsl query type for ETbBookingSpaceReceipt
 */
@Label("订舱单回执表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbBookingSpaceReceipt extends RelationalPathBase<ETbBookingSpaceReceipt> {

    private static final long serialVersionUID = -96435468;

    public static final QTbBookingSpaceReceipt tbBookingSpaceReceipt = new QTbBookingSpaceReceipt("tb_booking_space_receipt");

    public class PrimaryKeys {

        public final PrimaryKey<ETbBookingSpaceReceipt> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.ETbBookingSpaceOrder> tbBookingspaceReceiptTbBookingSpaceOrder1Fk = createForeignKey(tbBookingSpaceOrderId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbLadingBill> _tbLadingBillTbBookingspaceReceipt1Fk = createInvForeignKey(id, "tb_bookingspace_receipt_id");

    }

    public final StringPath common = createString("common");

    public final DateTimePath<org.joda.time.DateTime> createTime = createDateTime("createTime", org.joda.time.DateTime.class);

    public final StringPath emptyBill = createString("emptyBill");

    public final StringPath flag = createString("flag");

    public final StringPath id = createString("id");

    public final StringPath orderStatus = createString("orderStatus");

    public final StringPath tbBookingSpaceOrderId = createString("tbBookingSpaceOrderId");

    public final StringPath trackingNo = createString("trackingNo");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QTbBookingSpaceReceipt(String variable) {
        super(ETbBookingSpaceReceipt.class, forVariable(variable), "null", "tb_booking_space_receipt");
        addMetadata();
    }

    public QTbBookingSpaceReceipt(String variable, String schema, String table) {
        super(ETbBookingSpaceReceipt.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbBookingSpaceReceipt(Path<? extends ETbBookingSpaceReceipt> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_booking_space_receipt");
        addMetadata();
    }

    public QTbBookingSpaceReceipt(PathMetadata<?> metadata) {
        super(ETbBookingSpaceReceipt.class, metadata, "null", "tb_booking_space_receipt");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(common, ColumnMetadata.named("common").withIndex(8).ofType(Types.VARCHAR).withSize(45));
        addMetadata(createTime, ColumnMetadata.named("createTime").withIndex(7).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(emptyBill, ColumnMetadata.named("emptyBill").withIndex(3).ofType(Types.VARCHAR).withSize(45));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(5).ofType(Types.VARCHAR).withSize(8));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(orderStatus, ColumnMetadata.named("orderStatus").withIndex(6).ofType(Types.VARCHAR).withSize(8));
        addMetadata(tbBookingSpaceOrderId, ColumnMetadata.named("tb_booking_space_order_id").withIndex(4).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(trackingNo, ColumnMetadata.named("trackingNo").withIndex(2).ofType(Types.VARCHAR).withSize(45));
    }

}

